package com.canxi.earn.domain.bo;

import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;
import com.canxi.common.core.domain.BaseEntity;
import com.canxi.common.core.validate.AddGroup;
import com.canxi.common.core.validate.EditGroup;


/**
 * 笑话业务对象 cx_joke
 *
 * @author ruoyi
 * @date 2024-09-05
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class CxJokeBo extends BaseEntity {

    /**
     * 主键
     */
    @NotBlank(message = "主键不能为空", groups = { EditGroup.class })
    private String id;

    /**
     * 标题
     */
    @NotBlank(message = "标题不能为空", groups = { AddGroup.class, EditGroup.class })
    private String title;

    /**
     * 内容
     */
    @NotBlank(message = "内容不能为空", groups = { AddGroup.class, EditGroup.class })
    private String content;

    /**
     * 数据来源,0=后台添加，1=联合数据
     */
    @NotBlank(message = "数据来源,0=后台添加，1=联合数据不能为空", groups = { AddGroup.class, EditGroup.class })
    private String sourceType;

    /**
     * 数据来源id
     */
    private String sourceId;

    /**
     * 笑话分类
     */
    @NotBlank(message = "笑话分类不能为空", groups = { AddGroup.class, EditGroup.class })
    private String categoryId;

    /**
     * 0=不显示，1=显示
     */
    private String status;

    /**
     * 排序
     */
    private Long sort;


}
